import Axios from 'axios'

const auth = {
    loggedIn() {
        var token = window.localStorage.token;
        var user_status = window.localStorage.user_status;
        if (!token || token === 'undefined') {
            return false;
        }
        if (user_status === 'outlogin') {
            return false;
        }
        return true;
    },
    setLogged(token) {
        window.localStorage.token = token;
        window.localStorage.user_status = 'login';
    }
}
export default auth;